{extend name="public/base" /}

{block name="title"}添加管理员{/block}

{block name="main"}
<div class="layui-tab" id="Js_title_navigation">
    <ul class="layui-tab-title">
        <li class="layui-this">添加管理员</li>
    </ul>
</div>
<form class="layui-form layui-row " action="" method="post">
    <input type="hidden" value="{$adminid}" name="adminid" />
	<div class="layui-col-xs12" style="padding-bottom: 50px;">
		<div class="layui-form-item layui-col-md4">
			<label class="layui-form-label">登录账户：</label>
            <div class="layui-form-mid">
		      {$admin['account']}
        	</div>
		</div>
		<div class="layui-form-item layui-col-md4">
			<label class="layui-form-label">真实姓名：</label>
			<div class="layui-form-mid">
		      {$admin['name']}
        	</div>
		</div>
        
		<div class="layui-form-item layui-col-md4">
			<label class="layui-form-label">手机号：</label>
            <div class="layui-form-mid">
                {$admin['mobile']}
			</div>
		</div>
        
        <div class="layui-form-item layui-col-md4">
            <label class="layui-form-label">所属角色：</label>
            <div class="layui-form-mid">
            {$admin['role']}
            </div>
        </div>
        <div class="layui-form-item layui-col-md4">
			<label class="layui-form-label">注册时间：</label>
			<div class="layui-form-mid">
		      {:date('Y-m-d H:i:s',$admin['addtime'])}
        	</div>
		</div>
        <div class="layui-form-item ">
			<label class="layui-form-label">上次登录：</label>
			<div class="layui-form-mid">
		      {:date('Y-m-d H:i:s',$login['list'][1]['addtime'])} / {$login['list'][1]['area']} (ip: {$login['list'][1]['ip']})
        	</div>
		</div>
         
	</div>
    <div class="layui-layout-admin" >
        <div class="layui-footer" style="left:0;">
            <div class="layui-form-item">                
                <a style="display: none;" href="javascript:;" class="layui-btn layui-btn-primary" id="JS_close">关闭</a>
                <a href="/sys/user/edit" class="layui-btn" >修改资料</a>
			</div>
        </div>
    </div>

</form>
{/block}
{block name="script"}
<script>
    $('#JS_close').on('click',function(){
        console.log('111');
        //window.close(); 
    });
</script>
{/block}